Skip to content

Eval next.config export functions in the try catch#93884

Merged
lukesandberg merged 2 commits into
canaryfrom
config_eval_throw_bad_message
May 18, 2026
Merged

Eval next.config export functions in the try catch#93884
lukesandberg merged 2 commits into
canaryfrom
config_eval_throw_bad_message

Conversation

@lukesandberg
Copy link
Copy Markdown
Contributor

@lukesandberg lukesandberg commented May 16, 2026

Move next.config evaluation inside the try catch where we import and transform it

This ensures we print an appropriate help link if the export function throws

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@lukesandberg lukesandberg marked this pull request as ready for review May 16, 2026 00:52
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 16, 2026

Notifying the following users due to files changed in this PR based on this repo's notify modifiers:

@timneutkens, @ijjk, @shuding, @huozhi:

packages/next/src/server/config.ts

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 16, 2026

Tests Passed

Commit: 35821c0

@mischnic mischnic changed the title eval next.config export functions in the try catch E May 18, 2026
@mischnic mischnic changed the title E Eval next.config export functions in the try catch May 18, 2026
@lukesandberg lukesandberg enabled auto-merge (squash) May 18, 2026 18:32
@lukesandberg lukesandberg merged commit 0114ea2 into canary May 18, 2026
295 of 299 checks passed
@lukesandberg lukesandberg deleted the config_eval_throw_bad_message branch May 18, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants